import psycopg

conn = psycopg.connect("dbname=examdb user=examdb")
print(conn)